package p.ithorns.integration.transform.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import p.ithorns.integration.transform.entity.Account;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author ithorns
 * @since 2019-06-28
 */
public interface AccountMapper extends BaseMapper<Account> {

    /**
     * 根据条件查询是存在
     * @author 2019/6/29-17:12 by Ht.L
     * @param column -查询的列名
     * @paramvalue -查询的值
     * @return boolean
     */
    // @Select("SELECT IFNULL((SELECT 1 FROM account WHERE #{column} = #{value} LIMIT 1), 0) ")
    boolean existsBy(@Param("column") String column, @Param("value") String value);

}
